package karma.main;

import net.minecraft.src.*;

public class ItemKarmaCrafting extends Item
{
    boolean effect;
    boolean rarity;

    public ItemKarmaCrafting(int i, boolean flag, boolean flag1)
    {
        super(i);
        effect = flag;
        rarity = flag1;
        maxStackSize = 64;
    }

    /**
     * Return an item rarity from EnumRarity
     */
    public EnumRarity getRarity(ItemStack itemstack)
    {
        if (rarity)
        {
            return mod_KarmaCraft.ENCHANTED;
        }
        else
        {
            return EnumRarity.common;
        }
    }

    public boolean hasEffect(ItemStack itemstack)
    {
        return effect;
    }
}
